import Axios from "axios";

//通用请求
export  function CommonRequest(config){

    const instance = Axios.create({
        timeout: 1000 * 30,
    })

    instance.interceptors.response.use(response => {
        console.log("response",response)
        return response.data
    },err => {
        // console.log('响应错误',err)
        throw err
    })

    return instance(config)

}
